<template>
	<div class="p_user">
		<div class="p_user_return">
			<a href="javascript:history.back(-1)"><img src="../../assets/login/返回.png"/></a>
			<span>个人中心</span>
			<a href="#/"><span>退出</span></a>
		</div>
		<div class="p_user_photo">
			<a href="#/">
				<img src="../../assets/login/头像.jpg"/>
				<span> {{user}}</span>
			</a>
		</div>
		<div class="p_user_order">
			<span>全部订单</span>
		    <a href="#/" class="p_user_order_span"> 查看全部订单 ⇨</a>
		</div>
		<div class="p_user_order_list">
			<a href="#/daifukuan" class="p_user_order_daifukuan"> 代付款</a>
			<a href="#/daishouhuo" class="p_user_order_daishouhuo">待收货</a>
			<a href="#/yiwancheng" class="p_user_order_yiwancheng">已完成</a>
			<a href="#/tuikuan" class="p_user_order_tuikuan">退款/售后</a>
		</div>
		<div class="p_user_shouhuo">
			<a href="#/shouhuodizhiguanli">收货地址管理<em>⇨</em></a>
			<a href="#/wodeshoucang">我的收藏<em>⇨</em></a>
			<a href="#/lianxikefu">练习客服<em>⇨</em></a>
		</div>
	</div>
</template>

<script>
	export default{
		name:"usergeren",
		data(){
			return {
				user:'彭大大'
			}
	},
		mounted(){			
			var obj = localStorage.obj;
			if(typeof obj !=='undefined'){
				var arr = JSON.parse(obj);
				this.user = arr[0].phone;
			}
			
		}
	}
</script>

<style scoped>
	.p_user{
		background-color: rgb(244,244,244);
	}
	.p_user_order{
		color: white;
	}
	.p_user_return{
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 95%;
		margin: auto;
	}
	.p_user_return img{
		width: 70%;
		height: 70%;
		margin: 2%;
	}
	.p_user_return span {
		display: inline-block;
		font-size: 2rem;
	}
	
	.p_user_photo{
		width: 100%;
		height: 15rem;
		background: url(https://goss.veer.com/creative/vcg/veer/800water/veer-168824063.jpg) no-repeat;
		background-size: 100% 100%;	
	}
	.p_user_order{
		margin: auto;
		width: 95%;
		height: 4rem;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 2rem;
		border-bottom: 1px solid rgb(153,153,153);
		padding-left: 3%;
		background-color: white;
		color: black;
	}
	.p_user_order_span {
		font-size: 1.2rem;
		color: rgb(153,153,153);
	}
	.p_user_order_list{
		display: flex;
		justify-content: space-around;
		padding-top: 5%;
		background-color: white;
		
	}
	.p_user_order_list a{
		display: block;
		width: 20%;
		height: 2rem;
		background-size:  55%;
		padding-top:3.3rem ;
		text-align: center;
		color: rgb(153,153,153);
		font-size: 1.2rem;
		/*padding-bottom: 2rem;*/
		/*border: 1px solid;*/
	}
	.p_user_order_daifukuan{		
		background: url(../../assets/login/钱包.png) no-repeat  top center;	
	}
	.p_user_order_daishouhuo{
		background: url(../../assets/login/待收货.png) no-repeat  top center;
	}
	.p_user_order_yiwancheng{
		background: url(../../assets/login/已完成.png) no-repeat  top center;
	}
	.p_user_order_tuikuan{
		background: url(../../assets/login/退款.png) no-repeat  top center;
	}
	.p_user_shouhuo{
		margin-top: 5%;
	}
	.p_user_shouhuo a{
		display: block;
		width: 90%;
		border-bottom: 1px solid rgb(153,153,153);
		font-size: 1.5rem;
		line-height: 3rem;
		display: flex;
		justify-content: space-between;
		color:rgb(153,153,153);
		font-weight: 150;
		background-color: white;
		margin: auto;
		padding: 5% 5% 0 5%;
	}
	.p_user_photo a{
		display: block;
		text-align: center;
	}
	.p_user_photo img{
		width: 20%;
		border-radius: 50%;
		margin-top: 3rem;
	}
	.p_user_photo span{
		display: block;
		font-size: 2rem;
		color: white;
	}
</style>